<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="library/jeasyui/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css" href="library/jeasyui/themes/icon.css">
<script src="library/ckeditor/ckeditor.js" type="text/javascript"/></script>
<script src="library/ckfinder/ckfinder.js" type="text/javascript"/></script>
<script type="text/javascript" src="library/jeasyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="library/jeasyui/jquery.easyui.min.js"></script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
        <tr>
          <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;修改产品</td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><form name="form1" method="POST" action="test.php">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <input type="hidden" name="f" value="edit" />
          <input type="hidden" name="id" size="30" value="{$product[0].id}" />
          <tr>
            <td height="30" align="right" class="left_txt2">产品类别： </td>
            <td>&nbsp;</td>
            <td height="30"><select class="easyui-combobox" name="column">
                <option value="">-请选择-</option>
                
                                                 {html_options options = $arrayColumnOption  selected = $product[0].fdColumnID}
                                              
              </select></td>
            <td height="30" class="left_txt">产品类别</td>
          </tr>
          <tr>
            <td height="30" align="right" class="left_txt2">产品名： </td>
            <td>&nbsp;</td>
            <td height="30"><input class="easyui-validatebox" type="text" name="name" size="30" data-options="required:true" value="{$product[0].fdName}" /></td>
            <td height="30" class="left_txt">产品名</td>
          </tr>
          <tr>
            <td height="30" align="right" class="left_txt2">产品短语：</td>
            <td>&nbsp;</td>
            <td height="30"><input type="text" name="target" size="30" value="{$product[0].fdTarget}" /></td>
            <td height="30" class="left_txt">产品短语</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">定价：</td>
            <td bgcolor="#f2f2f2">&nbsp;</td>
            <td height="30" bgcolor="#f2f2f2"><input class="easyui-numberbox" type="text" name="listprice" size="30" data-options="precision:2,groupSeparator:',',decimalSeparator:'.',prefix:'￥'" value="{$product[0].fdListPrice}" /></td>
            <td height="30" bgcolor="#f2f2f2" class="left_txt">定价</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">优惠价：</td>
            <td bgcolor="#f2f2f2">&nbsp;</td>
            <td height="30" bgcolor="#f2f2f2"><input class="easyui-numberbox" type="text" name="price" size="30" data-options="precision:2,groupSeparator:',',decimalSeparator:'.',prefix:'￥'" value="{$product[0].fdPrice}" /></td>
            <td height="30" bgcolor="#f2f2f2" class="left_txt">优惠价</td>
          </tr>
          <tr>
            <td height="30" align="right" class="left_txt2">生效日期：</td>
            <td>&nbsp;</td>
            <td height="30"><input name="availabe" class="easyui-datebox" data-options="formatter:myformatter,parser:myparser" size="30" value="{$product[0].fdAvailabe}" /></td>
            <td height="30" class="left_txt">生效日期</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">失效日期：</td>
            <td bgcolor="#f2f2f2">&nbsp;</td>
            <td height="30" bgcolor="#f2f2f2"><input class="easyui-datebox" data-options="formatter:myformatter,parser:myparser" name="expire" size="30" value="{$product[0].fdExpire}" /></td>
            <td height="30" bgcolor="#f2f2f2" class="left_txt">失效日期</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#F7F8F9" class="left_txt2">产品授权方式：</td>
            <td bgcolor="#F7F8F9">&nbsp;</td>
            <td height="30" bgcolor="#F7F8F9"><input class="easyui-validatebox" type="text" name="license" size="30" data-options="required:true" value="{$product[0].fdLicense}" >
              </input></td>
            <td height="30" bgcolor="#F7F8F9" class="left_txt">产品说明</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#F7F8F9" class="left_txt2">产品可选版本：</td>
            <td bgcolor="#F7F8F9">&nbsp;</td>
            <td height="30" bgcolor="#F7F8F9"><input class="easyui-validatebox" type="text" name="version" size="30" data-options="required:true" value="{$product[0].fdVersion}" >
              </input></td>
            <td height="30" bgcolor="#F7F8F9" class="left_txt">产品说明</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#F7F8F9" class="left_txt2">产品说明：</td>
            <td bgcolor="#F7F8F9">&nbsp;</td>
            <td height="30" bgcolor="#F7F8F9"><textarea cols="50" id="editordescription" name="description" rows="10">{$product[0].fdDescription}</textarea></td>
            <td height="30" bgcolor="#F7F8F9" class="left_txt">产品说明</td>
          </tr>
          <tr>
            <td height="30" align="right" bgcolor="#F2F2F2" class="left_txt2">备注：</td>
            <td bgcolor="#F2F2F2">&nbsp;</td>
            <td height="30" bgcolor="#F2F2F2" colspan="2"><textarea cols="50" id="editormemo" name="memo" rows="10">{$product[0].fdMemo}</textarea></td>
            <!--<td height="30" bgcolor="#F2F2F2"><span class="left_txt">备注</span></td>--> 
          </tr>
          <tr>
            <td height="30" align="center" colspan="4"><input type="submit" value="保存" name="btn1" />
              <input type="reset" value="取消" name="btn2" /></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<script>	

	var editor = CKEDITOR.replace( 'editormemo' );
	CKFinder.setupCKEditor( editor, 'library/ckfinder/' ) ;	
			
	function myformatter(date){  
		var y = date.getFullYear();  
		var m = date.getMonth()+1;  
		var d = date.getDate();  
		return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);  
	}  
	function myparser(s){  
		if (!s) return new Date();  
		var ss = (s.split('-'));  
		var y = parseInt(ss[0],10);  
		var m = parseInt(ss[1],10);  
		var d = parseInt(ss[2],10);  
		if (!isNaN(y) && !isNaN(m) && !isNaN(d)){  
			return new Date(y,m-1,d);  
		} else {  
			return new Date();  
		}  
	}	
</script>
</body>
</html>
